<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html class="no-js">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title>Admin Login</title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width">

        <link rel="stylesheet" href="css/bootstrap.min.css">
        <style>
            body {
			  padding-top: 40px;
			  padding-bottom: 40px;
			  background-color: #eee;
			}
			
			.form-signin {
			  max-width: 330px;
			  padding: 15px;
			  margin: 0 auto;
			}
			.form-signin .form-signin-heading,
			.form-signin .checkbox {
			  margin-bottom: 10px;
			}
			.form-signin .checkbox {
			  font-weight: normal;
			}
			.form-signin .form-control {
			  position: relative;
			  font-size: 16px;
			  height: auto;
			  padding: 10px;
			  -webkit-box-sizing: border-box;
			     -moz-box-sizing: border-box;
			          box-sizing: border-box;
			}
			.form-signin .form-control:focus {
			  z-index: 2;
			}
			.form-signin input[type="text"] {
			  margin-bottom: -1px;
			  border-bottom-left-radius: 0;
			  border-bottom-right-radius: 0;
			}
			.form-signin input[type="password"] {
			  margin-bottom: 10px;
			  border-top-left-radius: 0;
			  border-top-right-radius: 0;
			}
        </style>
        <link rel="stylesheet" href="css/bootstrap-theme.min.css">
        <link rel="stylesheet" href="css/main.css">

        <script src="js/vendor/modernizr-2.6.2-respond-1.1.0.min.js"></script>
    </head>
    <body>
    <div class="navbar navbar-inverse navbar-fixed-top">
    </div>
	<!-- ******************** -->
	<!-- ******************** -->
	<!-- CODE INTERESSANT ICI -->
	<!-- ******************** -->
	<!-- ******************** -->
    <div class="container">
			
			<form class="form-signin" action="admin?action=login" method="post">
		      	<h2 class="form-signin-heading">Authentification</h2>
		      	<c:if test="${not empty sessionScope.errorlogin}">
					<h4 style="color:red;">Erreur login</h4>
				</c:if>
	       		<input type="text" class="form-control" name="login" placeholder="Identifiant" required autofocus>
		        <input type="password" class="form-control" name="password" placeholder="Mot de passe" required>
		        <button class="btn btn-lg btn-primary btn-block" type="submit">Connexion</button>
	      	</form>
	<!-- ************************ -->
	<!-- ************************ -->
	<!-- FIN CODE INTERESSANT ICI -->
	<!-- ************************ -->
	<!-- ************************ -->		
		<hr>
		<footer>
        	<p class="text-muted credit">&copy; Benoît Boyer, Antoine Leguy & Pierre-Antoine Milot 2013</p>
      	</footer>
    </div> <!-- /container -->        
    	<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
        <script>window.jQuery || document.write('<script src="js/vendor/jquery-1.10.1.min.js"><\/script>')</script>

        <script src="js/vendor/bootstrap.min.js"></script>

        <script src="js/main.js"></script>
    </body>
</html>


